Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MET-685: Add new parameters #15

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

MarkSackerberg
Copy link
Collaborator

Adding displayOptions for

  • displayOptions.showUnverifiedCollections
  • showCollectionMetadata
  • showFungible
  • showInscription
  • onlyVerified

Copy link

vercel bot commented Mar 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
digital-asset-standard-api-js-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 11, 2025 1:33pm

Comment on lines +107 to +110
'https://gateway.irys.xyz/8da3Er9Q39QRkdNhBNP7w5hDo5ZnydLNxLqe9i6s1Nak',
// TODO: Needs to be added again after MTG-1380 is merged
// description: '',
// external_url: ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still a TODO? Can you confirm whether its merged/deployed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is blocked by MTG-1493
I’d propose to merge it with that to do and fix it in one of the agreed follow up PRs

Comment on lines +113 to +122
// Assert the asset exists and has group_definition
t.truthy(specificAsset, 'Expected to find the specific asset');
if (specificAsset) {
t.is(
(specificAsset as any).group_definition,
undefined,
'Expected group_definition to be undefined when showUnverifiedCollections is true'
);
}
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this one supposed to be the case where the collection is shown but just as unverified?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the test coverage as I see it:

Method showUnverifiedCollections: true showUnverifiedCollections: false showCollectionMetadata: true showFungible: true onlyVerified: true onlyVerified: false
getAsset
getAssets
getAssetsByAuthority
getAssetsByCreator
getAssetsByGroup
getAssetsByOwner
searchAssets

Looks like everything is covered to some degree except showInscription which maybe is fine if we don't easily have those assets to test with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants